home *** CD-ROM | disk | FTP | other *** search
/ Skunkware 5 / Skunkware 5.iso / man / cat.1 / sq.1 < prev    next >
Text File  |  1995-07-25  |  2KB  |  67 lines

  1.  
  2.  
  3.  
  4.      SSSSQQQQ((((1111))))                 UUUUNNNNIIIIXXXX SSSSyyyysssstttteeeemmmm VVVV ((((LLLLOOOOCCCCAAAALLLL))))                 SSSSQQQQ((((1111))))
  5.  
  6.  
  7.  
  8.      NNNNAAAAMMMMEEEE
  9.           sq - squeeze a sorted word list unsq - unsqueeze a sorted
  10.           word list
  11.  
  12.      SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
  13.           ssssqqqq < infile > outfile
  14.  
  15.           uuuunnnnssssqqqq < infile > outfile
  16.  
  17.      DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
  18.           _s_q compresses a sorted list of words (a dictionary). For
  19.           example:
  20.                sort /usr/dict/words | sq | compress > words.sq.Z
  21.           will compress dict by about a factor of 4.
  22.  
  23.           _u_n_s_q uncompress the output of _s_q. For example:
  24.                compress -d < words.sq.Z | unsq | sort -f -o words
  25.           will uncompress a dictionary compressed with _s_q.
  26.  
  27.           The squeezing is achieved by eliminating common prefixes,
  28.           and replacing them with a single character which encodes the
  29.           number of characters shared with the preceding word.  The
  30.           prefix size is encoded as a single printable character: 0-9
  31.           represent 0-9, A-Z represent 10-35, and a-z represent 36-61.
  32.  
  33.      AAAAUUUUTTTTHHHHOOOORRRR
  34.           Mike Wexler
  35.  
  36.      SSSSEEEEEEEE AAAALLLLSSSSOOOO
  37.           compress(1), sort(1).
  38.  
  39.  
  40.  
  41.  
  42.  
  43.  
  44.  
  45.  
  46.  
  47.  
  48.  
  49.  
  50.  
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.      Page 1                                          (printed 6/30/95)
  64.  
  65.  
  66.  
  67.